package com.ruoyi.web.controller.tool;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wechat.domain.BskBanner;
import com.ruoyi.wechat.service.IBskBannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;


@Api("banner")
@RestController
@RequestMapping("/basketball")
public class BasketballApiController extends BaseController {

    @Autowired
    private IBskBannerService bannerService;


    @ApiOperation("获取banner列表")
    @GetMapping("/banner/list")
    public AjaxResult bannerList()
    {
        List<BskBanner> list = bannerService.selectBannerList(new BskBanner());
        return AjaxResult.success(list);
    }
}
